package com.study.service;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * @author : wilbur.yuan
 * @date : 2019-02-21
 */
@Configuration
@PropertySource("classpath:custom-config/app-${spring.profiles.active}.yaml")
public class SimpleAutoConfiguration {

    @Bean
    public SimpleService simpleService(){
        return new SimpleService();
    }

}
